package com.ems.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ems.vo.BaseVo;

import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 文件表
 * </p>
 * @author WuZH
 * @since 2023-10-24
 */
@Data
@TableName ("file_info")
@ApiModel (value = "FileEntity对象", description = "文件表")
public class FileEntity extends BaseVo {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty ("文件Id")
    @TableId (value = "id", type = IdType.INPUT)
    private String id;

    @ApiModelProperty ("存储硬盘地址")
    @TableField ("diskUrl")
    private String diskUrl;

    @ApiModelProperty ("url")
    @TableField ("fileUrl")
    private String fileUrl;

    @ApiModelProperty ("图片名称")
    @TableField ("title")
    private String title;

    @ApiModelProperty ("文件类型,1系统文件,2发电站文件,3设备文件,4维保文件,5工单文件,6计划文件")
    @TableField ("type")
    private Integer type;

    @ApiModelProperty ("关联表Id")
    @TableField ("relationId")
    private String relationId;

    @ApiModelProperty ("上传数据")
    @TableField ("createTime")
    private Date createTime;

    @ApiModelProperty ("更新时间")
    @TableField ("changeTime")
    private Date changeTime;

    @TableField ("isUsed")
    private Integer isUsed;


}
